import React from 'react';
import { ISession, ITarget } from '@/ts/core';
import { ProFormLayoutType } from '@ant-design/pro-components';
import TargetSetting from './targetSetting';
interface IProps {
  target: ITarget;
  session: ISession;
  layoutType?: ProFormLayoutType;
}

const SettingInfo: React.FC<IProps> = ({ target, session, ...other }: IProps) => {
  if (~['单位', '群组', '组织群', '部门', '人员'].indexOf(session.typeName)) {
    return <TargetSetting target={target} session={session} {...other} />;
  }
  return <div>暂不支持</div>;
};

export default SettingInfo;
